
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%
	String path = request.getContextPath();
	String basepath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>admin/flexigrid/css/flexigrid_gray.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basepath%>admin/flexigrid/jqModal/css/jqModal_gray.css">
		<script type="text/javascript" src="<%=basepath%>admin/flexigrid/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="<%=basepath%>admin/flexigrid/flexigrid.js"></script>
		<script type="text/javascript" src="<%=basepath%>admin/flexigrid/jqModal/dimensions.js"></script>
		<script type="text/javascript" src="<%=basepath%>admin/flexigrid/jqModal/jqDnR.js"></script>
		<script type="text/javascript" src="<%=basepath%>admin/flexigrid/jqModal/jqModal.js"></script>
	</head>
	<body>
	       <table id="flex2" style="display: none">
	     
	       </table>   
        <script type="text/javascript">   
            $("#flex2").flexigrid    
            (    
            {    
            url: '<%=basepath%>flexhshospitalAction',
            dataType: 'json',
             colModel : [
		        {display:'编号',name:'id',width:100,sortable:true,align:'center'},
		            {
			            display : '医院',
			            name : 'hospital',
			            width : 200,
			            sortable : true,
			            align : 'center'
		            }, 
		            {
			            display : '预约次数',
			            name : 'yuyue',
			            width : 200,
			            sortable : true,
			            align : 'center'
		            }, 
		            {
			            display : '就诊次数',
			            name : 'jiuzhen',
			            width : 100,
			            sortable : true,
			            align : 'center'
		            }
		       , 
		            {
			            display : '成功率',
			            name : 'suc',
			            width : 100,
			            sortable : true,
			            align : 'center'
		            }
		            ],
                usepager: true,  
                title: '医院统计',
                useRp: true,  
                page:1,//默认当前页
		        total:1,//总页数
		        rp : 10,//每页默认的结果数
                 
		        rpOptions:[5,10,15,20,25,30,50,100],
		        procmsg:'正在处理,请等待......',
		        nomsg:'没有数据',
		        hideOnSubmit:true,//隐藏提交
		        autoload:true,//自动加载
		        blockOpacity:0.5,//透明度设置  
             checkbox : false,// 是否要多选框  
            showTableToggleBtn: true,    
            width: 800,    
            height: 400    
            }    
            );    
                
            function test(com,grid)    
            {    
                if (com=='Delete')    
                    {    
                        confirm('Delete ' + $('.trSelected',grid).length + ' items?')    
                    }    
                else if (com=='Add')    
                    {    
                        alert('Add New Item');    
                    }               
            }    
   
        </script> 

	</body>
</html>












